package tech.aistar.day01.HomeWork;

public class ComputerAndScreenTest {
    public static void main(String[] args) {
        //创建显示器
        Screen s1=new Screen("CRT",17,"三星");
        Screen s2=new Screen("液晶",23,"ViewSonic");
        Screen s3=new Screen("LED",20,"SONY");
        Screen s4=new Screen("LED",25,"海信");
        //创建电脑
        Computer c1=new Computer("联想",5233.00,"世界第一",s1);
        Computer c2=new Computer("DELL",5622,"世界第二",s2);
        Computer c3=new Computer("IBM",6544,"领头人",s3);
        Computer c4=new Computer("华硕天选",4562,"坠机堡垒",s4);
        //打印电脑信息
        System.out.println(c1.toString());
        System.out.println(c2.toString());
        System.out.println(c3.toString());
        System.out.println(c4.toString());
    }
}
